apiKey

fun apiKey(key: String): Credentials

Creates credentials representing a login using a user API key.

This provider must be enabled on MongoDB Realm to work.

Return

a set of credentials that can be used to log into MongoDB Realm using App.login.

See also

https

://www.mongodb.com/docs/realm/authentication/api-key/#api-key-authentication

Parameters

key

the user API key to use for login.